package cn.youqu.happy.module.youqu.convert.userComment;

import cn.youqu.happy.framework.common.pojo.PageResult;
import cn.youqu.happy.module.youqu.controller.admin.userComment.vo.*;
import cn.youqu.happy.module.youqu.controller.app.userComment.vo.*;
import cn.youqu.happy.module.youqu.dal.dataobject.userComment.UserCommentDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * 用户回复 Convert
 *
 * @author 王其岩 20112001045
 */
@Mapper
public interface UserCommentConvert {

    UserCommentConvert INSTANCE = Mappers.getMapper(UserCommentConvert.class);

    UserCommentDO convert(UserCommentCreateReqVO bean);

    UserCommentDO convert(UserCommentUpdateReqVO bean);

    UserCommentRespVO convert(UserCommentDO bean);

    AppUserCommentRespVO convert0(UserCommentDO bean);

    List<UserCommentRespVO> convertList(List<UserCommentDO> list);

    List<AppUserCommentRespVO> convertList0(List<UserCommentDO> list);

    PageResult<UserCommentRespVO> convertPage(PageResult<UserCommentDO> page);

    List<UserCommentExcelVO> convertList02(List<UserCommentDO> list);

    UserCommentPageReqVO convert(AppUserCommentPageReqVO pageVO);

    PageResult<AppUserCommentRespVO> convertPage0(PageResult<UserCommentDO> pageResult);

    UserCommentDO convert(AppUserCommentPublishReqVO publishReqVO);

    UserCommentPageReqVO convert(AppUserCommentDetailPageReqVO detailPageReqVO);

    UserCommentDO convert(AppUserCommentReplyAssessReqVO replyAssessReqVO);
}
